package com.tqjc.business.interactivewithscan.consts;

/**
 * @program: C20005_Xianggang_new
 * @description: 扫描程序异常代码
 * @author: Patienyon
 * @create: 2023-10-31 10:29
 **/

public enum ExceptionEnum {

    NULL_POINTER_EXCEPTION(100001, "空指针引用异常"),
    CLASS_CAST_EXCEPTION(100002, "类型强制转换异常"),
    ILLEGAL_ARGUMENT_EXCEPTION(100003, "传递非法参数异常"),
    ARITHMETIC_EXCEPTION(100004, "算术运算异常"),
    ARRAY_STORE_EXCEPTION(100005, "向数组中存放与声明类型不兼容对象异常"),
    INDEX_OUT_OF_BOUNDS_EXCEPTION(100006, "下标越界异常"),
    NEGATIVE_ARRAY_SIZE_EXCEPTION(100007, "创建一个大小为负数的数组错误异常"),
    NUMBER_FORMAT_EXCEPTION(100008, "数字格式异常"),
    SECURITY_EXCEPTION(100009, "安全异常"),
    UNSUPPORTED_OPERATION_EXCEPTION(100010, "不支持的操作异常"),

    CREATE_HAS_VALUE(101001, "已存在的名称，请重新输入后提交"),
    DELETE_EXCEPTION(101002, "删除失败，查无此记录"),
    UPDATE_EXCEPTION(101003, "更新异常，请根据提示确认后提交"),

    MISS_PARAM(102001, "缺少必要参数"),
    Valid_PARAM(102002, "参数验证失败"),
    Fail_PARAM(102003, "参数解析失败"),
    Not_SUPPORTED(102004, "不支持"),
    Not_TOKEN(102005, "密钥为空"),
    ADD_FAILED(102007, "添加数据失败"),
    SELECT_FAILED(102008, "查无此记录"),
    UPDATE_VERSION(102009, "乐观锁异常"),
    DELETE_ERROR(102010, "删除失败"),
    UPDATE_ERROR(102011, "修改失败"),
    Expire_TOKEN(102006, "密钥失效"),
    NOT_DATA(102008, "没有数据"),

    THREAD_NO_START(103001, "线程未启动"),
    THREAD_INFO_ERROR(103002, "线程信息错误"),

    SCANNER_DEVICE_ERROR(104000, "设备信息错误！"),
    SCANNER_FORMAT_ERROR(104001, "扫描仪返回数据格式错误！"),
    SCANNER_ANALYSIS_ERROR(104002, "扫描仪返回数据解析错误！"),
    SCANNER_NO_DEM(104003, "扫描仪没有返回DEM数据！"),
    SCANNER_DEM_ERROR(104004, "扫描仪返回DEM数据错误！"),
    SCANNER_AREA_ERROR(104005, "扫描仪返回顶点数据错误！"),
    SCANNER_DATE_ERROR(104005, "扫描仪返回数据时间错误！"),

    TIANCHE_AVOIDANCE_ERROR(105001, "天车避让失败！"),
    TIANCHE_Crane_TARGET_ERROR(105002, "设置大车目标坐标失败！"),
    TIANCHE_Trolley_TARGET_ERROR(105003, "设置小车目标坐标失败！"),
    TIANCHE_Lifting_TARGET_ERROR(105004, "设置起升目标坐标失败！"),
    TIANCHE_Job_Type_ERROR(105005, "设置作业类型失败！"),
    TIANCHE_Task_Running_ERROR(105006, "设置任务运行状态失败！"),
    TIANCHE_Suction_Task_ERROR(105007, "查询吸料任务完成状态失败！"),
    TIANCHE_Discharge_Task_ERROR(105008, "查询放料任务完成状态失败！"),
    TIANCHE_Avoid_Task_ERROR(105009, "查询避让任务完成状态失败！"),
    TIANCHE_PLC_Task_ERROR(105010, "设置PLC任务失败！"),
    TIANCHE_Crane_REALTIME_ERROR(105011, "查询大车实时位置失败！"),
    TIANCHE_INFO_ERROR(105012, "天车信息错误！"),
    TIANCHE_AVOIDANCE_CHECK_ERROR(105013, "天车避让校验错误！"),
    TIANCHE_TASK_ERROR(105014, "天车任务错误！"),
    TIANCHE_COMMAND_ERROR(105015, "执行天车命令错误！"),

    TANKER_INFO_ERROR(106001, "槽车信息错误！"),
    TANKER_COMMAND_ERROR(106002, "执行槽车命令错误！"),

    TASK_UPDATE_ERROR(108001, "修改槽车任务明细失败！"),

    YUNTAI_INITIAL_STATUS(109001, "获取云台初始状态错误！"),
    YUNTAI_SCANNING_STATUS(109002, "获取云台扫描状态错误！"),
    YUNTAI_OpenPTZLidar(109003, "启动云台激光雷达错误！"),
    YUNTAI_StartPTZLidar(109004, "云台激光雷达开始采集出现错误！"),
    YUNTAI_Que_ScanResult(109005, "获取范围四个顶点扫描结果错误！"),
    YUNTAI_Que_TruckDEM(109006, "获取范围内DEM扫描结果错误！"),
    YUNTAI_COMMAND_ERROR(109007, "执行云台命令错误！"),
    YUNTAI_RSSStatus_ERROR(109008, "执行云台命令错误！"),
    YUNTAI_RSSStatus_NON_CONFORMITY(109009, "云台当前系统状态不支持扫描！"),
    YUNTAI_WindowPollution_ERROR(109010, "窗体污染严重！"),


    COORD_LAYER_HEIGHT_ERROR(110001, "坐标分层高度错误！"),
    ;


    private int code;

    private String msg;

    ExceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}


